From: Timo Röhling Date: Sat, 12 Nov 2022 12:19:56 +0000 (+0100) Subject: Fix compatibility with glslang-dev >= 11.12.0 X-Git-Tag: archive/raspbian/1.9.25+dfsg3-1+rpi1^2~47 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=fdb53d046b644b698151223ef811ab96a8cc9eaf;p=filament.git Fix compatibility with glslang-dev >= 11.12.0 --- diff --git a/debian/control b/debian/control index 9b7917a..1a21628 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Maintainer: Timo Röhling Build-Depends: debhelper-compat (= 13), clang, cmake, - glslang-dev, + glslang-dev (>= 11.12.0), libassimp-dev, libastcenc-dev, libbenchmark-dev, diff --git a/debian/patches/0018-Fix-TBuiltInResource-struct.patch b/debian/patches/0018-Fix-TBuiltInResource-struct.patch new file mode 100644 index 0000000..b8ec36b --- /dev/null +++ b/debian/patches/0018-Fix-TBuiltInResource-struct.patch @@ -0,0 +1,49 @@ +From: =?utf-8?q?Timo_R=C3=B6hling?= +Date: Sat, 12 Nov 2022 13:26:20 +0100 +Subject: Fix TBuiltInResource struct + +--- + filament/backend/test/builtinResource.h | 9 +++++++++ + libs/filamat/src/sca/builtinResource.h | 9 +++++++++ + 2 files changed, 18 insertions(+) + +diff --git a/filament/backend/test/builtinResource.h b/filament/backend/test/builtinResource.h +index 39ac194..78397fe 100644 +--- a/filament/backend/test/builtinResource.h ++++ b/filament/backend/test/builtinResource.h +@@ -107,6 +107,15 @@ const TBuiltInResource DefaultTBuiltInResource = { + /* .maxTaskWorkGroupSizeY_NV = */ 1, + /* .maxTaskWorkGroupSizeZ_NV = */ 1, + /* .maxMeshViewCountNV = */ 4, ++ /* .maxMeshOutputVerticesEXT = */ 256, ++ /* .maxMeshOutputPrimitivesEXT = */ 256, ++ /* .maxMeshWorkGroupSizeX_EXT = */ 128, ++ /* .maxMeshWorkGroupSizeY_EXT = */ 128, ++ /* .maxMeshWorkGroupSizeZ_EXT = */ 128, ++ /* .maxTaskWorkGroupSizeX_EXT = */ 128, ++ /* .maxTaskWorkGroupSizeY_EXT = */ 128, ++ /* .maxTaskWorkGroupSizeZ_EXT = */ 128, ++ /* .maxMeshViewCountEXT = */ 4, + /* .maxDualSourceDrawBuffersEXT = */ 1, + + /* .limits = */ { +diff --git a/libs/filamat/src/sca/builtinResource.h b/libs/filamat/src/sca/builtinResource.h +index 4419eb6..c47c8e0 100644 +--- a/libs/filamat/src/sca/builtinResource.h ++++ b/libs/filamat/src/sca/builtinResource.h +@@ -107,6 +107,15 @@ const TBuiltInResource DefaultTBuiltInResource = { + /* .maxTaskWorkGroupSizeY_NV = */ 1, + /* .maxTaskWorkGroupSizeZ_NV = */ 1, + /* .maxMeshViewCountNV = */ 4, ++ /* .maxMeshOutputVerticesEXT = */ 256, ++ /* .maxMeshOutputPrimitivesEXT = */ 256, ++ /* .maxMeshWorkGroupSizeX_EXT = */ 128, ++ /* .maxMeshWorkGroupSizeY_EXT = */ 128, ++ /* .maxMeshWorkGroupSizeZ_EXT = */ 128, ++ /* .maxTaskWorkGroupSizeX_EXT = */ 128, ++ /* .maxTaskWorkGroupSizeY_EXT = */ 128, ++ /* .maxTaskWorkGroupSizeZ_EXT = */ 128, ++ /* .maxMeshViewCountEXT = */ 4, + /* .maxDualSourceDrawBuffersEXT = */ 1, + + /* .limits = */ { diff --git a/debian/patches/series b/debian/patches/series index 95abe86..3c09467 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -15,3 +15,4 @@ 0015-Ensure-proper-alignment-of-resgen-_OFFSET-and-_SIZE-.patch 0016-Fix-FTBFS-with-GCC-12.patch 0017-Workaround-for-armel-clang-compiler-bug.patch +0018-Fix-TBuiltInResource-struct.patch